/*
 * tuya_ipc_sd_demo.h
 *Copyright(C),2017-2022, TUYA company www.tuya.comm
 *
 *FILE description:
  *
 *  Created on: 2021年1月11日
 *      Author: kuiba
 */

#ifndef COMPONENTS_DEMO_TUYA_IPC_INCLUDE_TUYA_IPC_SD_DEMO_H_
#define COMPONENTS_DEMO_TUYA_IPC_INCLUDE_TUYA_IPC_SD_DEMO_H_

#include <sys/statfs.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/prctl.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <pthread.h>
#include "tuya_ipc_api.h"
#include "tuya_ipc_stream_storage.h"
#include "tuya_ipc_common_demo.h"
#include "tuya_ipc_dp_handler.h"
#include "tuya_ipc_dp_utils.h"
#include "tuya_ipc_sdk_simple_start.h"

typedef enum
{
    SDCARD_STATE_UNKNOWN        = 0,
    SDCARD_STATE_MOUNTINT       = 1,
    SDCARD_STATE_UMOUNT         = 2,
    SDCARD_STATE_START_RECORD   = 3,
    SDCARD_STATE_MAX,
}EnumSDcardState;

typedef struct
{
    unsigned int total;
    unsigned int used;
    unsigned int free;
}StructSDStorage;

BOOL_T tuya_ipc_sd_format(VOID);
BOOL_T tuya_ipc_sd_umount(VOID);
int tuya_ipc_sd_status_upload(int status);
Com_void InSdk_SdCardCheck_Init(Com_void);

#endif /* COMPONENTS_DEMO_TUYA_IPC_INCLUDE_TUYA_IPC_SD_DEMO_H_ */
